package edu.ntu.im.p2ptrade.msg;

import edu.ntu.im.p2ptrade.P2PTrade;
import net.jxta.endpoint.Message;
import net.jxta.endpoint.StringMessageElement;

public class CannotCommit extends ControlMsg {
	public CannotCommit(String transactionId) {
		this.transactionId = transactionId;
	}

	@Override
	public void attachType(Message msg) {
		msg.addMessageElement(P2PTrade.getInstance().getAppName(),
				new StringMessageElement(TYPE, CannotCommit.class.getSimpleName(),
						null));
	}

	public String toLogMessage() {
		// TODO Auto-generated method stub
		return null;
	}

}
